<template>
    <HelloWorld :msg="msg"/>
</template>

<script lang="ts">
import {defineComponent, ref} from 'vue'
import HelloWorld             from 'frontend/src/components/HelloWorld.vue'
import dayjs                  from "dayjs";
export default defineComponent({
    name: "index",
    components: {
        HelloWorld
    },
    setup() {
        const msg = ref(dayjs().format("YYYY-MM-DD HH:mm:ss"))

        setInterval(() => {
            msg.value = dayjs().format("YYYY-MM-DD HH:mm:ss")
        }, 1000)

        return {
            msg
        }
    }
})
</script>

<style scoped>

</style>